<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page isELIgnored="false"%>
<%@ include file="../common/taglibs.jsp"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!doctype html>
<html>
<head lang="zh-CN">
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="renderer" content="webkit">
<title>退货保证金管理</title>
<link rel="icon" href="favicon.ico" type="image/x-icon"/>
<!-- 当前页面样式 -->
<link rel="stylesheet" href="<s:url value="/css/common.css"/>"/>
<!-- 当前页面样式 END -->
<style type="text/css">
.blue{
	color: blue
}
</style>
<script type="text/javascript" src="<s:url value="/js/jquery-1.9.1.js" />"></script>
<script type="text/javascript" src="<s:url value="/js/My97DatePicker/WdatePicker.js"/>"></script>
<script type="text/javascript">

function go(){
	history.go(-1);
}

$(document).ready(function(){

	$('#exportDetails').click(function(){
		$("#queryForm").attr("action","<%=basePath%>/margin/exportMarginAndReturnDetails.ct");
		$("#queryForm").submit();
		$(this).attr("disabled","true");
	});
});	

	
</script>
</head>

<body>
		<s:form id="queryForm" action="" method="post"
			theme="simple">
			<table class="tb">
				<tbody>
				<tr class="tb-line">
            		<td class="tb-td" colspan="4"><div class="tb-h2">POS收单运营管理平台</div></td>
        		</tr>
				 <tr class="tb-line">
					<td class="tb-td" colspan="4">
						<div class="tb-h3">退货保证金明细</div>
					</td>
				</tr>

				<s:if 	test="#request.searchRsList != null && #request.searchRsList.size>0">
					<tr class="tb-line">
						<td class="tb-td paging" colspan="4"><page:pageCount
								max_pages="11" totalPage="${requestScope.totalPage}"
								currentPage="${requestScope.currentPage}"
								action="${rootPath}/margin/queryMarginAndReturnDetails.ct?currentPage=" />

						</td>
					</tr>
				</s:if>
			</table>
	</s:form>		
				
	<div class="big-tb">
    <table class="tb" style="width: 100%;">
				<thead>
            	<tr class="tb-line">
                <th class="tb-th" colspan="18"><div class="tb-h3">退货保证金明细列表</div></th>
            	</tr>
					 <tr class="tb-line bg-gray">
					 					 	
						<th class="tb-th">日期</th>
						<th class="tb-th">时间</th>
						<th class="tb-th">交易键值</th>
						<th class="tb-th">机构号</th>
						<th class="tb-th">商户号</th>
						<th class="tb-th">商户名称</th>
						<th class="tb-th">终端号</th>		
						<th class="tb-th">保证金金额</th>	
						<th class="tb-th">变动前剩余额度</th>
						<th class="tb-th">退货金额</th>	
						<th class="tb-th">变动后剩余额度</th>	
						<th class="tb-th">操作标识</th>	
						<th class="tb-th">操作人</th>	
						<th class="tb-th">备注</th>	
						<th class="tb-th">状态</th>				
						
					</tr>
				</thead>
				<tbody>
					<s:iterator value="#request.searchRsList" status="stat" id="bean">
							<tr class="tb-line" >							
							<td class="tb-td"><s:property  value="#bean.transDt"/></td>
							<td class="tb-td"><s:property value="#bean.transMt"/></td>
							<td class="tb-td"><s:property value="#bean.keyRsp"/></td>
							<td class="tb-td"><s:property value="#bean.insIdCd"/></td>
							<td class="tb-td"><s:property value="#bean.mchtCd"/></td>
							<td class="tb-td"><s:property value="#bean.name"/></td>
							<td class="tb-td"><s:property value="#bean.termId"/></td>
							<td class="tb-td"><s:property value="#bean.securityAmt"/></td>
							<td class="tb-td"><s:property value="#bean.preAmt"/></td>
							<td class="tb-td"><s:property value="#bean.tranAmt"/></td>
							<td class="tb-td"><s:property value="#bean.currentAmt"/></td>
							<td class="tb-td">
								<s:if test="#bean.oprType==01">保证金变动</s:if>
								<s:elseif test="#bean.oprType==02">退货额度变动</s:elseif>
							</td>
							<td class="tb-td"><s:property value="#bean.accountNo"/></td>
							<td class="tb-td"><s:property value="#bean.remark"/></td>
							<td class="tb-td">
								<s:if test="#bean.status==00">交易完成</s:if>
								<s:elseif test="#bean.status==01">退货中</s:elseif>
								<s:elseif test="#bean.status==03">退货失败</s:elseif>
							</td>
							
				   </s:iterator>
						 
				</tbody>
			</table>
			</div>
			
			<div>
    		<table class="tb" style="width: 100%;">
			<tr class="tb-line">
           		 <td class="tb-td line-submit" align="right" colspan="10">
                	<label class="tb-input-submit"><input type="button" value="返回" onclick="go()"/></label>
                	<label class="tb-input-submit"><input type="button" value="导出" id="exportDetails"/></label>
                </td>
               </tr>
                </table>
              
                </div>
		   
	
</body>
</html>
